<template>
    <div class="complainPageView">
        <div class="headerBox">
            <van-icon size=".48rem" color="#000000" name="arrow-left" @click="backClick()"
                style="margin-left: .15rem;" />
            <van-icon size=".48rem" color="#000000" name="cross" style="margin-left: .15rem;" />
            <span class="title-span" @click="zxzwClick()">专线专网</span>
            <img class="bgImg" src="../../../assets/images/invoice/complain03.png" alt="">
        </div>
        <div class="main-div">
            <img v-if="status04" class="bgImg" src="../../../assets/images/invoice/complain04.png" alt="">
            <img v-if="status05" class="bgImg" src="../../../assets/images/invoice/complain05.png" alt="">
        </div>
        <div class="footer">
            <button v-if="btnShow" class="okbtn" @click="clickBtn()">提交</button>
        </div>

    </div>
</template>
<script>
export default {
    name: 'complainPageView',
    data() {
        return {
            btnShow:true,
            status04: true,
            status05: false,
        }
    },
    methods: {
        zxzwClick() {
            this.btnShow = false   // 避免当前图片空缺 页面短暂显示 底部提交 按钮

            this.status04 = !this.status04 
            this.status05 = !this.status05


            setTimeout(() => {
                this.btnShow = true
            },100)
        },
        backClick() {
            this.$router.push('/complainPage')
        },
        clickBtn() {

            this.$toast.success('提交成功');

            setTimeout(() => {
                this.$router.push('/home')
            }, 1000)
           
        }
    }
}
</script>
<style lang="less" scoped>
.complainPageView {
    width: 100%;
    height: 100%;
    overflow: auto;
    .headerBox {
        position: relative;
        width: 100%;
        height: 1.69rem;
        line-height: .88rem;
        background: linear-gradient(180deg, #E2F0FF 20%, #F7F8F9 100%);
        ;

        .title-span {
            font-weight: bold;
            font-size: 0.36rem;
            color: #000;
            margin-left: 1.66rem;
        }

        img.bgImg {
            width: 2.36rem;
            height: 2.61rem;
            position: absolute;
            right: 0;
        }
    }

    .main-div {
        width: auto;
        height: auto;
        margin: 0.4rem 0.3rem 0.4rem 0.3rem;

        img {
            width: 100%;
            position: relative;
        }
    }
    .footer{
        width: 100%;
        text-align: center;
        margin-bottom: 0.4rem;
        .okbtn {
            margin: 0 auto;
                width: 6.7rem;
                height: 1rem;
                line-height: 1rem;
                background: #2892FF;
                border-radius: 0.2rem;
                border: none;
                font-size: .34rem;
                color: #FFFFFF;
            }
    }
  
}
</style>
